﻿@model  Portal.Presentation.Models.UserInfoDataModel

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2 class="page-header">
    User info
</h2>
<div class="row">
    <div class="col-xs-9">
        <p><span class="glyphicon glyphicon-user"></span> @Model.FullName</p>
        @{ if (!string.IsNullOrWhiteSpace(Model.PrimaryEmail))
         {
            <p><span class="glyphicon glyphicon-envelope"></span> @Model.PrimaryEmail</p>
         }}
        @{ if (!string.IsNullOrWhiteSpace(Model.SecondaryEmail))
         {
            <p><span class="glyphicon glyphicon-envelope"></span> @Model.SecondaryEmail</p>
         }}
        @{ if (!string.IsNullOrWhiteSpace(Model.PrimaryPhone))
         {
            <p><span class="glyphicon glyphicon-earphone"></span> @Model.PrimaryPhone</p>
         }}
        @{ if (!string.IsNullOrWhiteSpace(Model.SecondaryPhone))
         {
            <p><span class="glyphicon glyphicon-earphone"></span> @Model.SecondaryPhone</p>
         }
        }
    </div>
</div>
<button type="button" class="btn btn-default" onclick="location.href='@Url.Action("Edit", "UserInfo")'">Edit</button>